﻿using System.Data.Entity.ModelConfiguration;
using RealtReview.DataAccess.Entities;

namespace RealtReview.DataAccess.Mappings
{
    public class UserDetailsMap : EntityTypeConfiguration<UserDetails>
    {
        public UserDetailsMap()
        {
            HasRequired(x => x.User)
              .WithRequiredPrincipal(x=>x.UserDetails)
              .WillCascadeOnDelete(true);
        }
    }
}